<%-- 
    Document   : add_student_post
    Created on : Nov 24, 2011, 8:18:50 PM
    Author     : THIENSUHACK
--%>

<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="dktc_ws.Phong"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
Phong phong = new Phong();
    phong.setSophong(Integer.parseInt(request.getParameter("sophong")));
    phong.setSucchua(Integer.parseInt(request.getParameter("succhua")));
    phong.setTang(Integer.parseInt(request.getParameter("tang")));
   int result=0;
   DataWS a=new DataWS();
   
result = a.suaphong(phong.getSophong(),phong.getSucchua(),phong.getTang());
   if(result>0)
             {
       out.print("thanh cong");
   }
   else
       out.print("that bai");
    response.sendRedirect("/DKTC/admin/index.jsp?page=list_account");
           %>